<%@ page import="org.json.JSONObject" %>
<%@ page import="com.gmono.managers.Article" %>
<%@ page import="com.gmono.managers.UserManager" %>
<%@ page import="com.gmono.managers.User" %><%--
  Created by IntelliJ IDEA.
  User: gaozijian
  Date: 2018/12/29
  Time: 11:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String username=request.getParameter("username");
    User u= UserManager.getUser(username);
    JSONObject object=new JSONObject();
    object.put("username",u.getUsername());
    object.put("name",u.getName());
    object.put("phonenumber",u.getPhonenumber());
    object.put("id",u.getId());

%>
<%=object.toString()%>
